Repository navigation
message-bridge: class/name notes, public wake signal, bridge helper (#13895) - #13917
Merged
Merged
Conversation
Adds src/notes.js: registered class/name identities (muse/archer), SHA-256-hashed identity tokens, wildcard delivery (muse/*, */archer, */*), per-identity inboxes with ack, and the public content-free wake signal on every non-reserved two-segment path: a bare UUID derived from the path, a per-path 10-40 minute decoy bucket, and a delivery counter, so a change never proves a note arrived. Notes live in the existing Durable Object (new note_identity / note_token / note_message tables; MemoryStore mirrors them for tests). bridge.mjs is the small CLI client (send / inbox / ack; the caller's token comes from the vault by name and is never printed). The README documents the addressing model and the privacy properties. Refs #13895 (bridge: class/name notes, public wake signal, hook).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #13895: class/name notes on the message bridge, the public content-free wake signal, and the
bridgehelper.src/notes.js: registered class/name identities, SHA-256-hashed identity tokens, wildcard delivery (muse/*,*/archer,*/*), per-identity inbox + ack, owner-only registration via the existing access token.GET /<class>/<name>returns one bare UUID for every non-reserved two-segment path — registered paths change on delivery (counter), all paths rotate on a per-path 10–40 min deterministic decoy bucket, so a change never proves a note arrived and no path reveals registration. No path in this space 404s.note_identity/note_token/note_message) with a MemoryStore mirror for tests.bridge.mjshelper (send/inbox/ack); the caller's token comes from the vault by name and is never printed.Tests:
node --test test/*.test.mjs— 72 pass, 0 fail (run on the laptop).Note: this branch is a clean cherry-pick of the original bridge commit onto current main; the original branch (
bridge/13895-note-signal) was based on a stray localmodelcommit (opencode.jsonc + claimant changes) that is deliberately NOT included here.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.